The attached patch does the following:
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 27 Feb 2006 15:13:05 +0000 (16:13 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 27 Feb 2006 15:13:05 +0000 (16:13 +0100)
commitd8a4248e024d6f46529fbcfc950d67052826d03f
tree7ae662dc398c1f71fef89362a25802fe95ba19e5
parent46ede6808b22e3de2bc100a46b33bea6e5d6095c
The attached patch does the following:

- introduces two basic tests for the virtual TPM (skipped on hardware
where a TPM is not available or vtpm manager has not been started
manually before)
- adapts the Makefiles to make the test cases available
- splits up the hotplug files into two files where the vtpm-common.sh
can be sourced by 'other' scripts as well
- uses echo "$var" to return variables from functions
- gets rid of the 'set +e" work-around
- introduces a script (vtpm-delete) to delete entries from the virtual
TPM directory in /etc/xen/vtpm.db

The xm-tests will skip over the 2nd test on most systems and the patch
has otherwise no effect on existing tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/examples/Makefile
tools/examples/vtpm
tools/examples/vtpm-common.sh
tools/xm-test/configure.ac
tools/xm-test/lib/XmTestLib/XenDomain.py
tools/xm-test/tests/Makefile.am
xen-unstable.hg/tools/examples/vtpm-delete [new file with mode: 0644]
xen-unstable.hg/tools/examples/vtpm-hotplug-common.sh [new file with mode: 0644]
xen-unstable.hg/tools/xm-test/tests/vtpm/01_vtpm-list_pos.py [new file with mode: 0644]
xen-unstable.hg/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py [new file with mode: 0644]
xen-unstable.hg/tools/xm-test/tests/vtpm/Makefile.am [new file with mode: 0644]